build:
	riscv64-linux-gnu-as hello.S -o hello.o
	riscv64-linux-gnu-gcc hello.o -o hello -nostdlib -static

# this is attributed to qemu-user-mode
run:
	@qemu-riscv64 ./hello

clean:
	-rm -rf hello hello.o

.PHONY: build run clean
